<template>
  <!-- http://changecabinet.yunheznkj.com/#/login 域名 
  http://127.0.0.1:8001/#/login?username=yhdaili&pas=yhzn  直接登录-->
  <transition name="fade">
    <router-view></router-view>
  </transition>
</template>

<script>
export default {
  data() {
    return {};
  },
  mounted() {
    var that = this;
    if (window.btns_arr) {
      this.setBtn(window.btns_arr);
    } else {
      window.btns_arr_call = function (res) {
        that.setBtn(res);
      };
    }
  },
  methods: {
    setBtn(list) {
      var obj = {};
      list.map((res) => {
        obj[res] = true;
      });


      this.$store.commit("setButtons", obj);
    },
  },
};
</script>
<style lang="scss">
.el-button [class*="el-icon-"] + span {
  margin-left: 0px;
}
.el-dialog__header {
  border-bottom: 1px solid #ebeef5;
}

.cus {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1021;
  .cus_box {
    width: 800px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 20px 20px 20px;
    border-radius: 8px;
    .title {
      height: 40px;
      line-height: 40px;
      border-bottom: 1px solid #e5e5e5;
      span {
        color: #17b3a3;
      }
      i {
        font-size: 20px;
        float: right;
        cursor: pointer;
        margin-top: 10px;
      }
    }
    .content {
      margin-top: 15px;
      .btns {
        text-align: center;
        margin-top: 15px;
      }
    }
  }
}

.tangram-suggestion-main {
  z-index: 10000;
}

.zZindex {
  z-index: 3000 !important;
}

.color1 {
  background: red;
}
.anchorBL {
  /* 隐藏地图下面的文字 */
  display: none;
}

.leaflet-control-attribution {
  display: none !important;
}

.my_tooltip {
  color: #fff;
  background: transparent;
  border: none;
  font-size: 0.75rem;
  box-shadow: none;
}

.my_tooltip::before {
  display: none;
}
</style>
